<template>
    <test :data="data"></test>
    <root></root>
</template>

<script setup>
import test from './components/test/tableTree.vue';
import root from './components/index.vue';
import { ref} from 'vue';
let data = ref([
    {
        name: '教案管理',
        children: [
            {
                name: 'a',
                children: [
                    { name: 'a-1' },
                    { name: 'a-2' },
                ]
            },
            {
                name: 'b',
                children: [
                    { name: 'b-1' },
                    {
                        name: 'b-2',
                        children: [
                            { name: '11' },
                            { name: '12' },
                            { name: '13' },
                            { name: '14' },
                        ]
                    },
                ]
            }
        ]
    },
    {
        name: '教案管理',
        children: [
            {
                name: 'a',
                children: [
                    { name: 'a-1' },
                    { name: 'a-2' },
                    {
                        name: 'a-3',
                        children: [
                            { name: 'a-3-1' },
                            { name: 'a-3-2' },
                            { name: 'a-3-3' },
                        ]
                    },
                    { name: 'a-4' },
                ]
            },
            {
                name: 'b',
                children: [
                    { 
                        name: 'b-1' ,
                        children:[
                            {name:'b-1-1'},
                            {name:'b-1-2'},
                        ]
                    },
                    {
                        name: 'b-2',
                        children: [
                            { name: '11' },
                            { name: '12' },
                            { name: '13' },
                            { name: '14' },
                        ]
                    },
                ]
            }
        ]
    },
])
</script>